9.2
CRITICAL CVSS 4.0
CVE-2026-42945
NGINX ngx_http_rewrite_module vulnerability
Description

NGINX Plus and NGINX Open Source have a vulnerability in the ngx_http_rewrite_module module. This vulnerability exists when the rewrite directive is followed by a rewrite, if, or set directive and an unnamed Perl-Compatible Regular Expression (PCRE) capture (for example, $1, $2) with a replacement string that includes a question mark (?). An unauthenticated attacker along with conditions beyond its control can exploit this vulnerability by sending crafted HTTP requests. This may cause a heap buffer overflow in the NGINX worker process leading to a restart. Additionally, attackers can execute code on systems with Address Space Layout Randomization (ASLR) disabled or when the attacker can bypass ASLR.  Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated.

INFO

Published Date :

May 13, 2026, 4:16 p.m.

Last Modified :

May 21, 2026, 7:16 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2026-42945 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 F5 nginx_plus
2 F5 nginx_open_source
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH 9dacffd4-cb11-413f-8451-fbbfd4ddc0ab
CVSS 3.1 HIGH [email protected]
CVSS 3.1 HIGH MITRE-CVE
CVSS 4.0 CRITICAL 9dacffd4-cb11-413f-8451-fbbfd4ddc0ab
CVSS 4.0 CRITICAL [email protected]
Solution
Update NGINX to a patched version to fix heap buffer overflow and potential code execution.
  • Update NGINX to a fixed version.
  • Apply vendor patches for NGINX.
  • Ensure ASLR is enabled on systems.
Public PoC/Exploit Available at Github

CVE-2026-42945 has a 91 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-42945.

URL Resource
https://my.f5.com/manage/s/article/K000161019
https://depthfirst.com/nginx-rift
https://github.com/DepthFirstDisclosures/Nginx-Rift
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-42945 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-42945 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Technical analysis of CVE-2026-42945 (NGINX Rift), a critical heap buffer overflow in NGINX's rewrite engine caused by a state mismatch between length calculation and copy operations, enabling worker crashes and potential remote code execution.

Updated: 1 day, 1 hour ago
0 stars 0 fork 0 watcher
Born at : June 22, 2026, 11:02 a.m. This repo has been linked 1 different CVEs too.

None

Dockerfile Python Shell

Updated: 2 days, 3 hours ago
2 stars 1 fork 1 watcher
Born at : June 20, 2026, 3:39 a.m. This repo has been linked 2 different CVEs too.

A dynamically growing portfolio of practical cybersecurity labs covering SOC operations, penetration testing, and real-world vulnerability mitigation.

Updated: 4 days, 15 hours ago
0 stars 0 fork 0 watcher
Born at : June 18, 2026, 8:32 p.m. This repo has been linked 3 different CVEs too.

None

Dockerfile Java Python Batchfile Shell C

Updated: 5 days, 15 hours ago
0 stars 0 fork 0 watcher
Born at : June 17, 2026, 9:08 p.m. This repo has been linked 1 different CVEs too.

None

Dockerfile Shell HTML PHP Python

Updated: 5 days, 16 hours ago
0 stars 0 fork 0 watcher
Born at : June 17, 2026, 3:15 p.m. This repo has been linked 1 different CVEs too.

Ping7 defensive CVE tools, GitHub pages, and repair guides

cve incident-response ping7 security-tools vulnerability-management

Updated: 5 days, 7 hours ago
0 stars 0 fork 0 watcher
Born at : June 16, 2026, 10:47 a.m. This repo has been linked 3 different CVEs too.

CVE-2026-42945 — NGINX Rewrite Module Heap Buffer Overflow RCE checker & Metasploit module

Python Ruby

Updated: 1 week, 1 day ago
0 stars 0 fork 0 watcher
Born at : June 15, 2026, 7:10 a.m. This repo has been linked 1 different CVEs too.

Python RCE PoC with reverse-shell listener for CVE-2026-42945 (NGINX Rift)

Python

Updated: 1 week, 1 day ago
0 stars 0 fork 0 watcher
Born at : June 14, 2026, 4:49 p.m. This repo has been linked 1 different CVEs too.

None

Dockerfile Rust

Updated: 1 week, 1 day ago
0 stars 0 fork 0 watcher
Born at : June 12, 2026, 11:31 a.m. This repo has been linked 1 different CVEs too.

None

Python C Shell PHP PowerShell ASP.NET

Updated: 1 week, 4 days ago
0 stars 0 fork 0 watcher
Born at : June 11, 2026, 3:01 p.m. This repo has been linked 85 different CVEs too.

None

Updated: 2 weeks ago
0 stars 0 fork 0 watcher
Born at : June 9, 2026, 11:17 a.m. This repo has been linked 1 different CVEs too.

Nginx RCE chain PoC with CVE-2026-9256 and CVE-2026-42945

Python Shell

Updated: 2 weeks, 1 day ago
2 stars 1 fork 1 watcher
Born at : June 5, 2026, 3:21 p.m. This repo has been linked 2 different CVEs too.

Detect-only scanner for CVE-2026-42945 (NGINX Rift), a heap overflow in ngx_http_rewrite_module. Version detection + nginx.conf pattern analysis. Python 3 stdlib-only, no network calls.

claude-code-skill cve heap-overflow nginx python security security-audit vulnerability-scanner

Python

Updated: 2 weeks, 5 days ago
0 stars 0 fork 0 watcher
Born at : June 4, 2026, 2:30 a.m. This repo has been linked 1 different CVEs too.

None

Shell

Updated: 2 weeks, 5 days ago
0 stars 0 fork 0 watcher
Born at : June 3, 2026, 7:10 p.m. This repo has been linked 1 different CVEs too.

Bulk scanning + one-click vulnerability exploitation

Updated: 2 weeks, 5 days ago
3 stars 0 fork 0 watcher
Born at : June 3, 2026, 11:14 a.m. This repo has been linked 1 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-42945 vulnerability anywhere in the article.

  • The Hacker News
F5 Patches Two Critical NGINX Open Source Flaws Enabling Remote Code Execution

Ravie LakshmananJun 18, 2026Vulnerability / Cloud Security F5 has released security updates to address two critical security flaws in NGINX Open Source that could be exploited to achieve code execut ... Read more

Published Date: Jun 18, 2026 (4 days, 19 hours ago)
  • The Hacker News
Google June 2026 Android Update Patches 124 Flaws, One Actively Exploited

Google on Monday released patches for 124 security vulnerabilities impacting its Android operating system for the month of June 2026, including one high-severity flaw in the Framework component that h ... Read more

Published Date: Jun 02, 2026 (2 weeks, 6 days ago)
  • The Hacker News
Gamaredon Exploits WinRAR to Deliver GammaWorm and GammaSteel Against Ukraine

The Russian hacking group known as Gamaredon has been attributed to the continued exploitation of a WinRAR vulnerability to deliver multiple malware families aimed at data theft and propagation. Per S ... Read more

Published Date: Jun 02, 2026 (2 weeks, 6 days ago)
  • The Hacker News
Oracle WebLogic CVE-2024-21182 Added to KEV Catalog After Active Exploitation

The U.S. Cybersecurity and Infrastructure Security Agency (CISA) on Monday added a high-severity security flaw impacting Oracle WebLogic Server to its Known Exploited Vulnerabilities (KEV) Catalog, ba ... Read more

Published Date: Jun 02, 2026 (2 weeks, 6 days ago)
  • The Hacker News
Critical WP Maps Pro Flaw Actively Exploited to Create Admin Accounts

Threat actors are attempting to actively exploit a critical security flaw impacting WP Maps Pro, a WordPress plugin that has had over 15,000 sales on the Envato Market, to create malicious administrat ... Read more

Published Date: Jun 01, 2026 (3 weeks, 1 day ago)
  • The Hacker News
PAN-OS GlobalProtect Authentication Bypass (CVE-2026-0257) Under Active Exploitation

Palo Alto Networks has warned that a recently disclosed medium-severity security flaw impacting PAN-OS and Prisma Access has come under active exploitation in the wild. The vulnerability, tracked as C ... Read more

Published Date: May 30, 2026 (3 weeks, 3 days ago)
  • The Hacker News
Attackers Use LLM Agent for Post-Exploitation After Marimo CVE-2026-39987 Exploit

An unknown threat actor has been observed using a large language model (LLM) agent to conduct post-compromise actions after obtaining initial access following the exploitation of a publicly-accessible ... Read more

Published Date: May 29, 2026 (3 weeks, 3 days ago)
  • The Hacker News
Threat Actors Exploit Critical FortiClient EMS Flaw to Deploy Credential Stealer

Threat actors are continuing to exploit a critical, now-patched security flaw impacting FortiClient Endpoint Management Server (EMS) deployments to deliver credential-stealing malware. "The campaign a ... Read more

Published Date: May 28, 2026 (3 weeks, 4 days ago)
  • The Hacker News
Microsoft Slams Public Zero-Day Disclosures Amid GitHub Researcher Account Removal

Microsoft has come out strongly in favor of Coordinated Vulnerability Disclosure (CVD), urging the research community to share their findings and give affected vendors an opportunity to better underst ... Read more

Published Date: May 28, 2026 (3 weeks, 4 days ago)
  • The Hacker News
ThreatsDay Bulletin: Claude Security Plugin, Azure Priv-Esc, Kali365 MFA Bypass, FIFA Scams +15 More

Every time you think the industry has finally stopped doing some reckless, low-effort crap, somebody spins up a fresh box full of sketchy loaders, fake installers, recycled social-engineering bait, an ... Read more

Published Date: May 28, 2026 (3 weeks, 4 days ago)
  • The Hacker News
AI Chatbot Recommendations Redirect Users to Cryptojacking Malware Sites

Microsoft has warned of an active cryptojacking campaign that makes use of artificial intelligence (AI) chatbot interactions as a mechanism for surfacing malicious download sites. "This emerging deliv ... Read more

Published Date: May 27, 2026 (3 weeks, 6 days ago)
  • The Hacker News
Microsoft Patches SharePoint RCE Flaw CVE-2026-45659 Across Server Versions

Microsoft has rolled out updates to fix a remote code execution vulnerability impacting SharePoint that could be exploited by bad actors in attacks without requiring any specialized conditions to be m ... Read more

Published Date: May 26, 2026 (4 weeks ago)
  • The Hacker News
KnowledgeDeliver LMS Flaw Exploited to Deploy Godzilla and Cobalt Strike

A now-patched high-severity security flaw affecting Digital Knowledge KnowledgeDeliver, a Learning Management System (LMS) popular in Japan, was exploited as a zero-day to deliver the Godzilla web she ... Read more

Published Date: May 26, 2026 (4 weeks ago)
  • The Hacker News
Ghost CMS CVE-2026-26980 Exploited to Hijack 700+ Sites for ClickFix Attacks

Threat actors are exploiting a recently disclosed critical security flaw in Ghost CMS to inject malicious JavaScript code with an aim to fuel ClickFix attacks. According to QiAnXin XLab, the activity ... Read more

Published Date: May 25, 2026 (4 weeks, 1 day ago)
  • CybersecurityNews
Nginx-poolslip Vulnerability Enables DoS and Code Execution Attacks — Patch Now!

A newly disclosed flaw in one of the world’s most widely deployed web servers is forcing administrators into another emergency patch cycle. Tracked as CVE-2026-9256 and publicly nicknamed nginx-poolsl ... Read more

Published Date: May 23, 2026 (1 month ago)
  • CybersecurityNews
New NGINX 0-Day RCE “nginx-poolslip” Affects Millions of NGINX Servers

A newly disclosed zero-day remote code execution (RCE) vulnerability, dubbed nginx-poolslip, has been identified in NGINX version 1.31.0, the latest stable release of the widely deployed web server so ... Read more

Published Date: May 21, 2026 (1 month ago)
  • The Cyber Express
Critical ChromaDB Flaw Exposes AI Vector Databases to Remote Code Execution

The security issue tracked as CVE-2026-45829, often referred to in analysis as ChromaToast Served Pre-Auth, affects the open-source vector database ChromaDB. ChromaDB is widely used for semantic searc ... Read more

Published Date: May 20, 2026 (1 month ago)
  • The Cyber Express
Critical NGINX Vulnerability CVE-2026-42945 Now Under Active Attack

Cybersecurity researchers are warning that attackers have already started exploiting a newly disclosed NGINX vulnerability, tracked as CVE-2026-42945, just days after technical details and proof-of-co ... Read more

Published Date: May 19, 2026 (1 month ago)
  • CybersecurityNews
Hackers Actively Exploiting Critical NGINX RCE Vulnerability in the Wild

Hackers are wasting no time exploiting a newly disclosed critical vulnerability in NGINX, with security researchers already observing real-world attacks just days after its public release. Security re ... Read more

Published Date: May 18, 2026 (1 month ago)
  • TheCyberThrone
Pwn2Own Berlin 2026 a Detailed Report

The curtain has fallen on Pwn2Own Berlin 2026. Three days. 47 unique zero-day vulnerabilities. $1,298,250 in total payouts. And a competition that, for the first time in its 19-year history, ran out o ... Read more

Published Date: May 18, 2026 (1 month ago)

The following table lists the changes that have been made to the CVE-2026-42945 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 21, 2026

    Action Type Old Value New Value
    Changed Description NGINX Plus and NGINX Open Source have a vulnerability in the ngx_http_rewrite_module module. This vulnerability exists when the rewrite directive is followed by a rewrite, if, or set directive and an unnamed Perl-Compatible Regular Expression (PCRE) capture (for example, $1, $2) with a replacement string that includes a question mark (?). An unauthenticated attacker along with conditions beyond its control can exploit this vulnerability by sending crafted HTTP requests. This may cause a heap buffer overflow in the NGINX worker process leading to a restart. Additionally, for systems with Address Space Layout Randomization (ASLR ) disabled, code execution is possible.  Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated. NGINX Plus and NGINX Open Source have a vulnerability in the ngx_http_rewrite_module module. This vulnerability exists when the rewrite directive is followed by a rewrite, if, or set directive and an unnamed Perl-Compatible Regular Expression (PCRE) capture (for example, $1, $2) with a replacement string that includes a question mark (?). An unauthenticated attacker along with conditions beyond its control can exploit this vulnerability by sending crafted HTTP requests. This may cause a heap buffer overflow in the NGINX worker process leading to a restart. Additionally, attackers can execute code on systems with Address Space Layout Randomization (ASLR) disabled or when the attacker can bypass ASLR.  Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated.
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    May. 14, 2026

    Action Type Old Value New Value
    Added Reference https://github.com/DepthFirstDisclosures/Nginx-Rift
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    May. 14, 2026

    Action Type Old Value New Value
    Added Reference https://depthfirst.com/nginx-rift
  • New CVE Received by [email protected]

    May. 13, 2026

    Action Type Old Value New Value
    Added Description NGINX Plus and NGINX Open Source have a vulnerability in the ngx_http_rewrite_module module. This vulnerability exists when the rewrite directive is followed by a rewrite, if, or set directive and an unnamed Perl-Compatible Regular Expression (PCRE) capture (for example, $1, $2) with a replacement string that includes a question mark (?). An unauthenticated attacker along with conditions beyond its control can exploit this vulnerability by sending crafted HTTP requests. This may cause a heap buffer overflow in the NGINX worker process leading to a restart. Additionally, for systems with Address Space Layout Randomization (ASLR ) disabled, code execution is possible.  Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated.
    Added CVSS V4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
    Added CVSS V3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
    Added CWE CWE-122
    Added Reference https://my.f5.com/manage/s/article/K000161019
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.